//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package come.tool.JDialog;

import org.come.Frame.FactionMainJframe;
import org.come.Jpanel.FactionCardJpanel;
import org.come.bean.LoginResult;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;

public class AbdicationJDialog implements TiShiChuLi {
    public AbdicationJDialog() {
    }

    @Override
    public void tipBox(boolean tishi, Object object) {
        int index = (Integer)object;
        if (tishi) {
            try {
                FactionCardJpanel factionCardJpanel = FactionMainJframe.getFactionMainJframe().getFactionMainJpanel().getFactionCardJpanel();
                ((LoginResult)factionCardJpanel.getGangResultBean().getRoleTables().get(index)).setGangpost("帮主");
                String sendMes = Agreement.GangChangeAgreement(((LoginResult)factionCardJpanel.getGangResultBean().getRoleTables().get(index)).getRole_id().toString());
                SendMessageUntil.toServer(sendMes);
            } catch (Exception var6) {
            }
        }

    }
}
